<%@ page import="bean.HistoryBean" %>
<%@ page import="dao.BookDao" %>
<%@ page import="java.util.ArrayList" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html lang="zh-CN">
<html>

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>图书归还</title>
    <link rel="stylesheet" href="css/bm.css">
</head>

<body>
<% //到数据库中查询所有学生
    ArrayList<HistoryBean> all = null;
    all = new BookDao().get_HistoryListInfo2(1);
%>
<header>
    <span class="sp">欢迎使用图书管理系统</span>
    <span class="adm">欢迎你，管理员</span>
</header>
<div class="center">
    <div class="head">
        <h1 style="margin-left: -28px">图书归还记录</h1>
        <div class="ah"><a href=login.html>重新登录</a>----||----<a href=index1.html>返回主界面</a></div>
    </div>

    <table>
        <tr>
            <th>编号:</th>
            <th>书号:</th>
            <th>书名:</th>
            <th>用户ID:</th>
            <th>姓名:</th>
            <th>借阅时间:</th>
            <th>归还时间:</th>
        </tr>

        <%
            //定义一个颜色数组
           /* String[] mycol = {"silver", "pink"};*/
            for (int i = 0; i < all.size(); i++) {
                HistoryBean b = (HistoryBean) all.get(i);
        %>
        <tr>
            <td><%=b.getHid() %>
            </td>
            <td><%=b.getBid() %>
            </td>
            <td><%=b.getBookname() %>
            </td>
            <td><%=b.getUsername() %>
            </td>
            <td><%=b.getAdminname() %>
            </td>
            <td><%=b.getBegintime() %>
            </td>
            <td><%=b.getEndtime() %>
            </td>
        </tr>

        <%} %>

    </table>

</div>
<div class="buttom">
    <span>欢迎使用图书管理系统</span>
</div>
</body>

</html>